package com.od.service.serviceImpl;

import com.od.mapper.DeliveryMapper;
import com.od.service.DeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DeliveryServiceImpl  implements DeliveryService {
    @Autowired
    private DeliveryMapper deliveryMapper;

    @Override
    public List<Map<String, Object>> getDeliveryInfo(String enterprise){
        return deliveryMapper.selectDeliveryInfo(Integer.parseInt(enterprise));
    }

    @Override
    public List<Map<String, Object>> getAllDeliveryById(int seekerId) {
        return deliveryMapper.selectAllDeliveryById(seekerId);
    }

}
